package com.lm.shop.order.feign.impl;

import com.lm.shop.common.utils.R;
import com.lm.shop.order.feign.ProductFeignService;
import org.springframework.stereotype.Component;

/**
 * @author lsk
 * @version 1.0.0
 * @ClassName ProductFeignServiceImpl.java
 * @Description 产品熔断接口
 * @createTime 2022年11月03日 00:47:00
 */
@Component
public class ProductFeignServiceImpl implements ProductFeignService {

    /**
     * @title getProductById
     * @description 获取产品信息的熔断方法
     * @author lsk
     * @param: id
     * @updateTime 2022/11/3 0:48
     * @return: com.lm.shop.common.utils.R
     */
    @Override
    public R getProductById(Long id) {
        return R.ok().setData(id);
    }
}
